﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace MvcShop.Models
{
    [MetadataType(typeof(Product_propertys_contentMetadata))]
    public partial class Product_propertys_content
    {
    }

    public class Product_propertys_contentMetadata
    {
        [Required]
        public int ProductId { get; set; }

        [Required]
        public int PropertyId { get; set; }

        [Required(ErrorMessage="商品属性内容不能为空.")]
        [StringLength(200, ErrorMessage = "商品属性内容不能超过200个字符.")]
        public string PropertyContent { get; set; }
    }
}
